Dim $UIBarChart1$ As UIBarChart
$UIBarChart1$.Initialize(Me, "$UIBarChart1$")
$UIBarChart1$.AddToParent(Activity, 10dip, 10dip, 300dip, 200dip)
$UIBarChart1$.TextTitle = "Monthly Productivity"
Dim points As List = Array("Jan", "Feb", "Mar", "Apr", "May")
Dim values As List = Array(120.0, 200.0, 150.0, 80.0, 220.0)
' With many categories, swipe horizontally to inspect the full chart.
$UIBarChart1$.setData(points, values)
	'Visible category gap; use -1 to restore the original automatic spacing.
	$UIBarChart1$.BarSpacing = 5dip
$end$
